#include <stdio.h>
int main(void)
{
    char a;
    int b;
    int c;
    int d;
    int e;

    scanf("%c", &a);

    for (b = 5, c = 1; c <= b; c++)
    {
        for (d = 5 - c; d > 0; d--)
            printf(" ");
        for (e = 1; e <= c; e++)
            printf("%c ", a);
        printf("\n");
    }

    return 0;
}
/*
#include <stdio.h>
int main() {
    char a = 0 ;
    int i = 0,j = 0;
    scanf("%c",&a);
    for(i = 1;i < 6;i++)
    {
        for(j = 5-i;j > 0;j--)
        {
            printf(" ");
        }
		for(j = 0;j < i;j++)
        {
            printf("%c ",a);
        }
         printf("\n"); 
    }
    return 0;
} 
*/
